package com.doupi.partner.service;

import com.doupi.partner.model.BusinessRelation;
import com.doupi.partner.util.Pagination;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface BusinessRelationService {
	int deleteByPrimaryKey(Long id);

	int insert(BusinessRelation record);

	BusinessRelation selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(BusinessRelation record);

	int countBusinessRelation(BusinessRelation businessRelation);

	List<BusinessRelation> queryBusinessRelations(BusinessRelation businessRelation, RowBounds rowBounds);

	List<BusinessRelation> selectBusinessRelationForUpdate(BusinessRelation businessRelation);

	BusinessRelation selectBusinessRelationForUpdateByPrimaryKey(Long id);

	Pagination<BusinessRelation, BusinessRelation> queryBusinessRelations(Pagination<BusinessRelation, BusinessRelation> pagination);

	int saveBusinessRelation(BusinessRelation businessRelation);

	int countBusinessRelationWithAnnotation(BusinessRelation businessRelation);

	List<BusinessRelation> queryBusinessRelationsWithAnnotation(BusinessRelation businessRelation, RowBounds rowBounds);

	Pagination<BusinessRelation, BusinessRelation> queryBusinessRelationsWithAnnotation(Pagination<BusinessRelation, BusinessRelation> pagination);

	BusinessRelation selectBusinessRelationByBusinessId(String businessId);
}
